<script src="/dryfe/js/control/module-database.js"></script>
<img src='/dryfe/gfx/module-icon/database.png' style='position: absolute;' />
<div id='module-database-control' style='position: absolute; left: 80px; right: 0px;' data-alias="{module.alias}">
<h2>Database access (Alias: {module.alias})</h2>
<form action="/control" method="post">
{#use:connection:
<label for='db-driver'>Driver:</label><select id='db-driver'>
<option>{driver}</option>
</select><br />
<label for='db-server'>Server:</label><input id='db-server' type='text' name='server' value='{server}' /><br />
<label for='db-username'>Username:</label><input id='db-username' type='text' name='username' value='{username}' /><br />
<label for='db-password'>Password:</label><input id='db-password' type='password' name='password' /><!-- Old password is not shown --><br />
<label for='db-database'>Database:</label><input id='db-database' type='text' name='dbname' value='{database}' /><br />}
<input type="submit" value="Update settings" /><input id='db-test-connection' type="button" value="Test connection" /> Note: <b>Test connection</b> uses the saved configuration, not the form's content, so update settings before testing !
</form>
</div>